package compilers.types;

import java.io.BufferedWriter;
import java.io.IOException;

import compilers.table.MemScope;

public class VoidType extends Type {

	public VoidType(boolean constant) {
		super(constant, 0);
	}

	public boolean isNumeric() {
		return false;
	}

	public void print(int tab) {
		for (int i=1;i<=tab;i++){System.out.print("\t");}System.out.print("|-");
		System.out.println("VoidType");
	}

	public void generate(BufferedWriter writer, MemScope scope) throws IOException {		
		
	}

	public Type computeOperation(Type second, String op) {
		return null;
	}

	public Type computeFactor(String pre) {
		return null;
	}
	
	public Type newInit() {
		return new VoidType(true);
	}
	
	public char getPType() {
		return ' ';
	}
	
	public Type clone() { 
		return new VoidType(this.isConstant);
	}

}
